//
//  FontSetView.h
//  ebook
//
//  Created by 吴超飞 on 16/3/11.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ReaderConfig.h"

#define MinTextFont 12
#define MaxTextFont 40

@class FontSetView;
@protocol FontSetViewDelegate <NSObject>

-(void)fontSetView:(FontSetView *)view fontsizeSet:(NSInteger)fontsize;
-(void)fontSetView:(FontSetView *)view backgroudColor:(ReadBackgroud)bgcolor;
-(void)fontSetView:(FontSetView *)view linespace:(CGFloat)space;
-(void)fontSetView:(FontSetView *)view setBtnClick:(NSInteger)btnTag;

@end

@interface FontSetView : UIView

@property (nonatomic,weak) id<FontSetViewDelegate> delegate;
@property (nonatomic,assign) BOOL isNight;

-(instancetype)initWithReaderConfig:(ReaderConfig *)config;

@end

//**************恢复系统亮度按钮*****************//

@interface SystemLightBtn : UIButton

@property (nonatomic,assign) BOOL isNight;
@property (nonatomic,assign) BOOL isBeSelected;
@property (nonatomic,retain) UIColor *color;
-(instancetype)initWithFrame:(CGRect)frame titleColor:(UIColor *)color;

@end
